package com.aaa.day1031demo.demo2;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年10月31日10:19
 */
public class Test {
    public static void main(String[] args) {
        //创建任务对象
        MyRunnable task=new MyRunnable();
        //创建线程对象
        Thread thread = new Thread(task);
        thread.start();

        for (int i = 0; i < 15; i++) {
            System.out.println(Thread.currentThread().getName()+"======"+i);
        }

    }
}
